package com.amp.cloud.rabbit.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName: RabbitmqListener
 * @Desc: TODO
 * @Auther: <Bang>
 * @Date: 2020/08/25 14:48
 * @Version: 1.0
 * @Modified By:
 */
@Component
public class RabbitmqListener {


    @RabbitListener(queues = "testQueue")
    public void listener(String msg) {
        System.err.println("======================== msg== "+msg);
    }
}
